Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for .NET 8 #2996

Merged
merged 39 commits into from
Nov 16, 2023
Merged

Support for .NET 8 #2996

merged 39 commits into from
Nov 16, 2023

Conversation

Kielek
Copy link
Contributor

@Kielek Kielek commented Oct 10, 2023

Why

Towards: #2946

What

Support for .NET 8

Tests

Checklist

  • CHANGELOG.md is updated.
  • Documentation is updated.
  • New features are covered by tests.
  • Test changes on Windows with Linux - Docker
  • Test changes on MacOs with Linux - Docker

Notes

  1. Thanks to @andrewlock for the DuckTyping fix after breaking changes in
    https://github.com/dotnet/runtime/pull/78544/files#diff-06068c51107f17306c32fecbb6c79ec0cd5f15c9c0efe8d5a42b093be05e72e7
  2. Linux distribution is build in 2 steps. Native code on Centos 7, then on Ubuntu full build with replacing native code by Ubuntu. All tests previously using Centos artifacts references Ubuntu artifacts.
    Native code compatibility by .NET versions:

TODOs

Replace all references to .NET8RC by stable version when possible.
Consider to update OTel to 1.7.0, but it will brings upgraded references. It can be done probably in separate PR. - separate PR, probably after release based on 1.6.0.
Handle dependabot PR related to the .NET8 package updates - can be done when this is merged.

build/Build.Steps.cs Show resolved Hide resolved
build/Build.Steps.cs Outdated Show resolved Hide resolved
@rajkumar-rangaraj
Copy link
Contributor

Reviewed the PR, it looks good to me. Once .NET 8.0 is GA, we could update the reference and merge the PR.

@rajkumar-rangaraj
Copy link
Contributor

.NET 8.0 has been released today - https://devblogs.microsoft.com/dotnet/november-2023-updates/

@Kielek
Copy link
Contributor Author

Kielek commented Nov 15, 2023

@rajkumar-rangaraj, internally we have discussed Dynamic PGO impact on our bytecode instrumentation: https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-8/#tiering-and-dynamic-pgo

I do not think that this change breaks anything, but is there any chance that you can double check and confirm it?

@Kielek
Copy link
Contributor Author

Kielek commented Nov 15, 2023

@rajkumar-rangaraj, ready for final review. Workarounds for .NET8-rc removed.

EDIT: Before merge we need to adjust required builds as it was changed in this PR.

@Kielek Kielek merged commit 938d1b0 into open-telemetry:main Nov 16, 2023
32 checks passed
@Kielek Kielek deleted the net8 branch November 16, 2023 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants